<?php use_stylesheet('home.css') ?>


<?php use_javascript('jquery.carouFredSel-6.2.0-packed.js') ?>
<?php use_javascript('helper-plugins/jquery.mousewheel.min.js') ?>
<?php use_javascript('helper-plugins/jquery.touchSwipe.min.js') ?>
<?php use_javascript('helper-plugins/jquery.transit.min.js') ?>
<?php use_javascript('helper-plugins/jquery.ba-throttle-debounce.min.js') ?>
<?php use_javascript('dotimeout.js') ?>

    <section id="sectionWelcome">
        <?php include_component('componente','welcome') ?>
    </section>


    <section id="bloqueHeader">  <?php include_component('componente','header') ?>    </section>
    <section id="bloqueBaner">      </section>
    <section id="sectionNav"><?php include_component('componente','nav') ?> </section>

    <section id="bloqueBuscador"> <?php include_component('componente','search') ?>    </section>



    <section id="sectionBodyHome">
        <div id="contenedor">

            <div>
                <span>Perfil de usuario</span>
            </div>
            <div class="divisor_perfil">
                <div class="autor_perfil">
                   <?php $DS = DIRECTORY_SEPARATOR; ?>
                   <?php if(file_exists(sfConfig::get('sf_upload_dir').$DS."usuario".$DS.$usuario->getFoto())){ ?>
                   <?php echo image_tag('/uploads/usuario/'.$usuario->getFoto()) ?>
                   <?php } ?><br>
                   <span class="Nombre_perfil"><?php echo  $usuario->getNombre(); ?><?php echo  $usuario->getApellido(); ?>  </span><br>
                   <span><?php echo  $usuario->getProfesion(); ?></span><br>
                   <div class="perfil"><span><?php echo $usuario->getPerfil(); ?> </span><br></div>

                   <div>
                       <button  value="Seguir"></button>
                   </div>
                   <hr>
                   <hr>
                   <hr>
               </div>
 

               <div class="documentos_autor">

             <?php foreach ($lista_documento as $row) { ?>
                   <div  class="ccontend_imag">
                       <div class="imag_izq">
                           <?php $DS = DIRECTORY_SEPARATOR; ?>
                           <?php if(file_exists(sfConfig::get('sf_upload_dir').$DS."documento".$DS.$row->getRutaDocumento())){ ?>
                           <?php echo image_tag('/uploads/documento/'.$row->getRutaDocumento()) ?>
                           <?php } ?>
                       </div>
                       <div class="imag_der">
                        <span><?php echo $row->getTitulo(); ?></span>
                        <span><?php echo $row->getUsuario()->getNombre(); ?><?php echo $row->getUsuario()->getApellido(); ?></span>
                        <span><?php echo $row->getUsuario()->getProfesion() ?></span>
                           
                       </div>
                       
                   </div>
            <?php } ?>

               </div>
            </div> 


        </div>
    </section>



